// 商品展示
import axios from "@/utils/axios.js";

// 点击图文资讯，获取图文列表页面数据信息
export const getGoods = (pageindex) => {
  return axios({
    url: `/api/getgoods?pageindex=${pageindex}`,
  });
};

// 获取商品参数区和价格，标题等数据
export const getInfoById = (id) => {
  return axios({
    url: `/api/goods/getinfo/${id}`,
  });
};

// 商品图文介绍
export const getDescById = (id) => {
  return axios({
    url: `/api/goods/getdesc/${id}`,
  });
};
